<div class="select_value">
    <fieldset >
        <legend>
            <b style="color: #00749f;">Стоимость</b>
        </legend>
        от
        <input size="8" maxlength="8"   onkeyup="return check_number(this);" onchange="return check_number(this);"  
        value="<?php if(isset($minprice)){  if($minprice != '' && $minprice != '0')  { echo $minprice;  }} ?>"
            name="minprice">
        до
        <input size="8"  onkeyup="return check_number(this);" onchange="return check_number(this);"  
          value="<?php if(isset($maxprice)){  if($maxprice != '' && $maxprice != '0')  { echo $maxprice;  }} ?>"
      maxlength="8" name="maxprice">
        <b>Валюта:</b>
        <select name="currency">
            <option  <?php if(isset($currency)){  if($currency == '1'){  ?> selected="selected"  <?php }} ?>  value="1">$</option>
            <option  <?php if(isset($currency)){  if($currency == '2'){  ?> selected="selected"  <?php }} ?>  value="2">р.</option>
        </select>
        <select name="m2">
            <option  <?php if(isset($currency)){  if($currency == '0'){  ?> selected="selected"  <?php }} ?> value="0">за все</option>
            <option  <?php if(isset($currency)){  if($currency == '1'){  ?> selected="selected"  <?php }} ?> value="1">за кв.м</option>
        </select>
</div>